<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="tags" tagdir="/WEB-INF/tags"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="spring" uri="http://www.springframework.org/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%><head>
	<title><fmt:message key="address" /></title>
</head>
<body>
	<fmt:message key="crud.autocomplete" /> <input type="text" id="address">
	<div id="load"></div>
	<script>	
		$("#address").autocomplete({
			source: "/domain/rest/address/autocomplete",
			select: function(event, ui) {
				document.location.href = "/domain/address/show/" + ui.item.id;
			},
			focus: function(event, ui) {
				location("/domain/address/show/" + ui.item.id + ".html");
			}
		});
	</script>
</body>
